Skip to content

fix(fields): an Enter that picks an input-method candidate no longer moves the grid field, commits a date or jumps the picker page; one isImeKey - #36126

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35996-ime-enter-fields
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-35996-ime-enter-fields

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Fixes #35996

Clause-②: yes (widening): the @object-ui/components entry gains one value export, isImeKey(e: { nativeEvent: KeyboardEvent; keyCode?: number }): boolean. Measured on the built declarations: the components dist/index.d.ts gains exactly export { isImeKey } from './lib/ime-key.js'; plus the new lib/ime-key.d.ts. The @object-ui/fields entry declarations are byte-identical to main (index.d.ts unchanged; 120 of 121 emitted .d.ts identical, and the one that differs is the internal widgets/imeKey.d.ts, which no export path and no other .d.ts reaches). Nothing is removed or narrowed.
Metadata-protocol: none
Skills-docs: none — no skill teaches the input-method key guard (zero hits for isImeKey or isComposing under skills/), and field behaviour outside a composition is unchanged

repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

维护者速读

  • 用中文、日文、韩文输入法打字时,按回车选词不再误触发:表单里的明细表格不再跳到下一行或多加一行,日期框不再把打了一半的日期当成输入提交,选择记录弹窗的页码框不再跳页、清空。
  • 这是输入法回车问题的收尾,前一张卡修了标签、查找、人员三个控件,这次补上剩下三个,并把判断「这个键归输入法」的规则合成一份,以后改一处就全生效。
  • 出错的话最多是这三处在输入法下按回车没反应;不碰数据和保存逻辑,可以直接撤回。
  • 要你做什么:无。

What changes

Three guards (@object-ui/fields), each the first line of the handler:

One predicate. isImeKey is defined once, in ui/packages/components/src/lib/ime-key.ts, and exported from the @object-ui/components entry. The grid's dataTableCellSelection.ts and fields/src/widgets/imeKey.ts now only re-export it. The fields module stays a one-line re-export rather than being deleted because #36039 imports ./imeKey.js. Each of the two modules keeps its local import path, and the repository has one function body. A test asserts that the function fields uses is the same object the components entry exports.

Phase-1 reproduction in real Chromium (CDP Input.imeSetComposition, then Enter with keyCode 229, then Input.insertText), all three on main 615d995: the grid moved 0-0 to 1-0 and the committed text landed in row 1, and on the last row it appended a line. The date box committed "2026-0" and showed "Not saved". The picker jumped from page 1 to 2 and cleared the box. A plain Enter worked as designed in each.

Files to read first (by risk):

  1. ui/packages/components/src/index.ts: the one new entry export (the Clause-② surface).
  2. ui/packages/fields/src/widgets/GridField.tsx, the onCellKeyDown hunk: the guard also stops the arrows during a composition.
  3. ui/packages/fields/src/widgets/imeKey.ts: now a re-export, not a second definition.

Two-minute check: pnpm --filter @object-ui/fields exec vitest run --root ../.. --maxWorkers=2 packages/fields/src/widgets/imeComposition-35996.test.tsx should report 9 passed.

Tests

ui/packages/fields/src/widgets/imeComposition-35996.test.tsx (9 tests). Each widget is driven through both real browser sequences: Chromium/Firefox (compositionstart, keydown Enter with isComposing: true and keyCode 229, compositionend) and Safari (compositionstart, compositionend, then the 229 Enter). Each case ends with a plain Enter as the control check, so a guard that swallowed every Enter would fail. There is also one identity test for the single predicate. The existing imeComposition-35797.test.tsx predicate cases now run against the shared definition through the re-export.

Acceptance notes

Verification

Every reading below was taken at head e19af2a8, which is b0724f52 merged with main 7dd1a2f6 (including #36054).

Package tests and typecheck
  • pnpm --filter @object-ui/fields exec vitest run --root ../.. --maxWorkers=2 packages/fields/ exited 0: Test Files 318 passed, 1 skipped (319); Tests 4794 passed, 7 skipped (4801).
  • pnpm --filter @object-ui/components exec vitest run --root ../.. --maxWorkers=2 packages/components/ exited 0: Test Files 502 passed, 1 skipped (503); Tests 4822 passed, 24 skipped (4846).
  • The 35996 and 35797 pins together: 19/19 passed.
  • pnpm --filter @object-ui/components type-check exited 0. pnpm --filter @object-ui/fields type-check exited 0; it runs tsc --noEmit && tsc -p tsconfig.test.json, so the new test is type-checked too.
Ablation: one run per guard, each failing, each restored

Each ablation went through scripts/ablation-replace.mjs, which wraps the run under the verify lock. The test subjects resolve to fields src/ through relative imports, so no dist/ rebuild was needed.

  • GridField if (isImeKey(e)) return; replaced with a comment: 4 failed, 5 passed (all four GridField cases). The first attempt queued behind another session's run and timed out (exit 99, NOT MEASURED). The rerun is the reading above.
  • DatePickerField guard, taken again at e19af2a8 on S4's textBox handler: 2 failed, 7 passed. Restore proven by the tool's own check (blob equals HEAD 90074f05, git diff HEAD empty) and by a separate hash comparison.
  • RecordPickerDialog || isImeKey(e): 2 failed, 7 passed. The first attempt was refused by the tool before any test ran (its replacement text already occurred in the file), so it was a no-op. The rerun used a unique replacement.
  • The GridField and RecordPickerDialog readings were taken at b0724f52. The merge does not touch either file: its diff against b0724f52 is empty for both. Restore proven after each run: git diff HEAD -- FILE is empty, and the HEAD blob hash equals the on-disk hash (GridField ef12bb6b, RecordPickerDialog bd58ecdc).
Declarations: main vs this head

Both builds used pnpm --filter @object-ui/components --filter @object-ui/fields build. The main build came from main 7dd1a2f6's sources for both packages, with the new file moved aside; HEAD was then restored, proven by an empty git diff HEAD and by blob hashes, and rebuilt.

  • components: index.d.ts gains export { isImeKey } from './lib/ime-key.js';, lib/ime-key.d.ts is new, and renderers/complex/dataTableCellSelection.d.ts now re-exports instead of declaring. Nothing else differs.
  • fields: index.d.ts is byte-identical (cmp). Of the 121 emitted .d.ts, exactly one differs: widgets/imeKey.d.ts, which now reads export { isImeKey } from '@object-ui/components'; in place of its own declare function. It is not reachable from exports (. only) or from any other .d.ts, so the published entry surface is unchanged, but the dist/ tree is not byte-identical.
Derived gate families

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 38 commands, and all 38 exited 0. Reconciliation: --ran reports "38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)". test:repo was not run locally; it belongs to CI.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv

… or jumps the record picker; one isImeKey (#35996)

GridField's cell keys, the date picker's Enter and the record picker's
page-jump Enter now leave a key the input method owns alone, as the list
grid and the three #35797 widgets already do. The predicate is defined once,
on the @object-ui/components entry; the fields module passes it through.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
Takes #36054 (S4): the date picker's text box moved into `textBox`, so the
#35996 input-method guard now sits on that one Enter handler, which both the
field face and the in-cell panel draw.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
…col: none (objectstack#35996)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgW85kwjGaz7HqsmEuv

Final green head · 2026-11-21T15:43Z · area b1-DB

  • Head 349c509bc5fcffbe75abb8ff83c40878533eda7c: 45 success, 13 skipped, 0 failed; mergeable clean.
  • check-governed-merges --pr 36126: NOT governed, +263 / −31.
  • An Enter (and, in the grid field, ArrowUp/ArrowDown) pressed while an input method is composing now does only what the input method does with it, in GridField, the date/date-time picker's text box (S4's shared textBox helper, field face and in-cell panel), and RecordPickerDialog's page-jump box. Each was reproduced in Chromium with a real composition first.
  • One predicate: isImeKey is defined once in @object-ui/components (lib/ime-key.ts) and exported from its entry; dataTableCellSelection.ts and fields' widgets/imeKey.ts are one-line re-exports (kept for feat(fields): the line-item grid's select and date cells open their panel under the cell (#36023 S5) #36039's import).
  • Clause-②: yes (widening), measured on built declarations: components index.d.ts gains exactly the isImeKey export; fields index.d.ts byte-identical. Metadata-protocol: none, so both packages are patch (349c509 corrects the components entry from minor, which Check Changeset refused under none).
  • The e19af2a reds (Test UI, TypeScript Type Check, Lint & Repo Gates) were lanes cancelled by the push of 349c509, not failures.
  • Next: seat declaration L2 and L1-a review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T15:45Z. The brief handed to the isolated declaration-face reviewer for PR #36126 (owed by the changeset's Clause-②: yes (widening) line in the claim on #35996). The record follows as its own comment.

Contract review brief — PR #36126 @ 349c509bc5fcffbe75abb8ff83c40878533eda7c (card #35996)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35996: its body and EVERY comment (rulings and earlier records included)
· also card #35797 (the parent class, IME-composing Enter) and merged PR #35993 (the first three widgets): bodies only, for context; ruling A on changeset levels (level from the Metadata-protocol line; Clause-② widening alone ships patch) is the reason the components changeset is patch
· PR #36126: its body, its file list, and the net diff against main at 349c509bc5fcffbe75abb8ff83c40878533eda7c
· the check-runs on 349c509bc5fcffbe75abb8ff83c40878533eda7c: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36126/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — ACCEPT (L1-a)

维护者速读

用中文、日文等输入法打字时,按回车是在选候选词,不是确认输入。以前在三个地方,这个回车会被当成真的回车:

  • 表单里的明细表格:会跳到下一行,上下箭头选词时也会跳行。
  • 日期和日期时间输入框:会把打了一半的日期当成最终值提交。表单里和表格格子里的日期框是同一个,两处都修到了。
  • 选择记录弹窗里的「跳到第几页」:会直接跳页。

现在这三处都会先判断「这是不是输入法在选词」,是的话就不处理。不用输入法时,回车照旧。判断规则平台只写了一份,原来表格单元格和字段各自那份改成直接用它,所以以后各处判断不会不一致。

没有需要修的问题,不属于受管面。对外新增了一个导出函数,座位还要在同一版本上跑一次 L2,本记录不替代它。

Head reviewed: 349c509bc5fcffbe75abb8ff83c40878533eda7c. Nine files, +263/−31. git merge-tree onto current main is clean. check-governed-merges --pr 36126 (PR-head register) reads NOT governed, 0 of 9 paths, 294 lines. reviewFace with Clause-②: yes (widening) gives face declaration → TIER_DEFAULT, so the seat's declaration L2 on this head is owed. CI is as the thread reported (final green comment 7065102913). vitest was not run here (no node_modules).

What holds

  • One predicate.
    • isImeKey is defined once, in components/src/lib/ime-key.ts. It is true on nativeEvent.isComposing, or on key code 229 from either the native or the synthetic event, which covers Safari's post-composition Enter.
    • It is exported from the components entry. dataTableCellSelection.ts and fields/src/widgets/imeKey.ts become one-line re-exports, so the cell-selection path and the field widgets judge with the same function object, and a pin asserts that identity.
    • fields already depends on @object-ui/components (workspace), so the re-export adds no edge.
  • Three guards, each first in its handler.
    • GridField onCellKeyDown: if (isImeKey(e)) return; runs before the Enter and arrow branches, so candidate navigation with the arrows no longer moves the active row.
    • TemporalPicker text box (date-picker/DatePickerField.tsx): the guard runs before the Enter branch, so neither preventDefault nor commitText runs on a candidate Enter. The cell panel reaches the same component through FieldEditWidget's lazy DatePickerField / DateTimePickerField, so one guard covers both faces.
    • RecordPickerDialog handlePageJump: if (e.key !== 'Enter' || isImeKey(e)) return;.
    • A plain Enter, with no composition and no 229, takes each old path unchanged. That is the CONTROL in the pins.
  • Already guarded on main: InCellOptionList, TagsField, PeoplePicker and LookupField keep their existing guards, now through the shared re-export.
  • Pins. imeComposition-35996.test.tsx covers the Chromium sequence, Safari's 229 Enter after composition, the plain-Enter control and function identity. The thread reports that each of the three guards goes red when ablated.
  • Clause-② yes (widening) is right. The components declaration surface gains isImeKey only. The fields surface is reported byte-identical. Nothing is removed or retyped. Both packages take patch.

Observation (no change asked)

  • RecordPickerDialog's table handleTableKeyDown and FileField's drop zone onKeyDown have no guard. Neither is a text-entry element, so no composition reaches them.

Landing terms

  • Not governed. After the seat's declaration L2 on this head, it lands through the ordinary queue. Fixes #35996 closes the card on merge.
  • A new push needs a delta L1 unless it is a clean main merge.
  • This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 349c509bc5fcffbe75abb8ff83c40878533eda7c
Local-runs: none

Inputs read: card #35996 (body, the triage comment and the claim comment; it carries no ruling and no earlier record), the bodies of #35797 and merged PR #35993, the PR #36126 body and its 9-file list, the net diff from merge-base 7dd1a2f6 to the head, and the 58 check-runs on the head. Nothing was built, run or re-run. The only commands were git fetch, git diff, git show and git grep, plus gh api GETs.

① Derived judgments

  • @object-ui/components entry gains one value export, isImeKey. This is right. src/index.ts adds export { isImeKey } from './lib/ime-key'. The function body in the new lib/ime-key.ts is byte-identical to the two copies it replaces: nativeEvent.isComposing === true, or nativeEvent.keyCode === 229, or keyCode === 229. The signature is also unchanged: { nativeEvent: KeyboardEvent; keyCode?: number }, returning boolean. Nothing else is added to the entry, and nothing is removed or retyped. The exports map is still . plus ./style.css. This is the only public-surface change in the diff.
  • renderers/complex/dataTableCellSelection.ts declares nothing now and re-exports isImeKey from ../../lib/ime-key. This is right. The module is not on the components entry: git grep finds no dataTableCellSelection in src/index.ts. data-table.tsx keeps its import path, so the list grid's behaviour cannot move.
  • @object-ui/fields widgets/imeKey.ts declares nothing now and re-exports isImeKey from @object-ui/components. This is right. fields already lists @object-ui/components under dependencies (workspace:*), and 70 files in fields/src/widgets already import that entry, so the PR adds no new package edge. components does not depend on fields, so no cycle appears. The fields exports map is . plus ./style.css, and the entry does not re-export imeKey. So the one emitted .d.ts that changes, widgets/imeKey.d.ts, is reachable from no export path. Seven fields modules import ./imeKey.js: GridField, InCellOptionList, LookupField, PeoplePicker, RecordPickerDialog, TagsField and DatePickerField. All of them now get the shared function object, and imeComposition-35996.test.tsx checks that identity.
  • Card acceptance, "one predicate; the grid and the field widgets import it". This is met. Outside tests, the only keyCode === 229 body in ui/packages/*/src is components/src/lib/ime-key.ts.
  • Accept-set changes. Each of the three guards stops a key that the input method owns. On any other key, each handler takes its old path unchanged.
    • GridField onCellKeyDown. if (isImeKey(e)) return; is the handler's first line. It covers every branch of the handler: Enter-append, Enter or ArrowDown moving down, and ArrowUp. The handler reads no other key, so nothing else is newly ignored. Stopping the arrows during a composition is right, because an input method uses the arrows to move between candidates. The PR body states this.
    • DatePickerField, TemporalPicker's textBox onKeyDown. The guard is the first line, so neither preventDefault nor commitText runs on a candidate Enter. Since feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell (#36023 S4) #36054, the field face and the in-cell panel both draw this one helper, so one guard covers both. I checked whether skipping preventDefault lets the form submit, and it does not. A composing Enter never triggers implicit submission. Safari's post-composition 229 Enter carries no keypress, so it does not either. Blur still commits the text as before.
    • RecordPickerDialog handlePageJump. The handler now returns on e.key !== 'Enter' || isImeKey(e). Leaving handleTableKeyDown unguarded is right: it listens on table rows that cannot be edited, so no composition reaches it.
  • Tests. Each widget gets the Chromium/Firefox sequence and the Safari sequence, and each case ends with a plain-Enter control. This matches what card To-do 3 asks for. The PR body reports one red ablation per guard.

② Semver level

  • Changeset. .changeset/35996-ime-enter-fields.md carries '@object-ui/components': patch and '@object-ui/fields': patch, and both packages are published. The body carries Clause-②: yes (widening), Metadata-protocol: none and a Skills-docs: line.
  • Metadata-protocol: none is right. No metadata key, value, type, meaning or default moves. The diff is a keyboard guard plus one helper export.
  • Clause-②: yes (widening) is right, and the PR body has the same line. One export is added to a published entry, and nothing is narrowed.
  • patch on both packages is right. AGENTS.md (finishing step 3) says the level follows the protocol kind alone: none takes patch, and a non-protocol widening also ships patch. Ruling A in the brief says the same. The head commit 349c509b changes only this changeset, moving components from minor to patch. The claim had said minor, so this is a correction toward the rule. Check Changeset passes on the head.
  • No skip-changeset. None is owed, because both packages ship a bug fix.

③ Boundary flags

  • Check-runs on 349c509b: 58 in total, 45 success, 13 skipped, 0 failed, 0 pending.

    • The skipped runs are by design for a pull request, UI Published Artifacts among them: ci.yml runs that job only on main's push and schedule, and the publish path still runs its own scan.
    • The legacy combined status reads pending with zero statuses. That is not a gate.
  • Dev flag: verification was taken at e19af2a8, not at the head. Accepted. The diff from e19af2a8 to 349c509b is the one-line changeset level and nothing else, and CI ran on the head itself.

  • Dev flag: overlap with open PR feat(fields): the line-item grid's select and date cells open their panel under the cell (#36023 S5) #36039 (S5). Accepted, no escalation. The overlap is one textual conflict in GridField's import block: both sides add the same isImeKey import, and S5 adds a gridCellPanels.js line. onCellKeyDown does not conflict. imeKey.ts stays as a re-export so S5's import still resolves. Whichever PR lands second resolves the conflict.

  • Dev flag: feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell (#36023 S4) #36054 (S4) merged in, with the DatePickerField conflict resolved onto textBox. Accepted. The diff shows the guard on that single handler.

  • Dev flag: the fields dist tree is not byte-identical. Accepted. The only difference is widgets/imeKey.d.ts, which no export path reaches. See ①.

  • Dev flag: test:repo was not run locally. Answered by CI. The head's runs are all green or skipped by design.

  • open_questions. The PR body and the card have none.

  • SQL push-down: no finding. The diff adds no query, no id materialisation and no in-app join. The RecordPickerDialog hunk is a keydown guard, and the test's find mock only replays the existing $skip/$top paging.

  • Nit, no effect on correctness: the jsdoc and changeset overclaim slightly. lib/ime-key.ts and the changeset prose say "every widget in @object-ui/fields that reads its own keys" asks the predicate. A few handlers do not: FileField's drop zone, RecordPickerDialog's table rows, RecordHoverCard and ImageLightbox. All four read keys on elements that cannot be edited, where no composition happens, so the claim holds in practice.

  • Nit, no effect on correctness: one GridField assertion is weak. In the last-line case, onChange.mock.calls.every(...) would also pass if onChange were never called. The cell(2) null assertion and the focus assertion carry the real check.

  • Observation for the seat, outside this card. Several inline isComposing checks in other packages test isComposing alone, without the Safari 229 case:

    • app-shell: CommandPaletteProvider, AppHeader, RecordDetailView and FlowNodeInspector
    • plugin-form: createMore and ModalForm
    • plugin-detail: RecordPageColumns
    • plugin-chatbot: prompt-input

    These are outside the card's grid-and-fields scope. Now that the predicate is on the components entry, they could adopt it. That would be a separate card if the seat wants one. This PR needs no change for it.

Implemented-by: claude/issue-35996-ime-enter-fields
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat landing · 2026-11-21T15:50Z · #35996 (b1-DB, the class of #35797 under #35683). The line-item grid, DatePicker (both the field face and the in-cell panel) and the RecordPicker page-jump box no longer act on an Enter pressed while an input method is composing. One predicate now serves grid and fields: isImeKey, exported from @object-ui/components, and the two old copies re-export it.

Reviews:

  • Seat declaration L2: PASS on this head (record posted just above). There are no must-fix or should-fix items.
  • L1-a: ACCEPT 7065137237 on this head.

Gates on this head:

  • Clause-②: yes (widening): one new value export, isImeKey. Metadata-protocol: none. Both packages ship patch under ruling A, and the head commit is that correction from minor.
  • check-governed-merges --pr 36126 reads NOT governed (+263/−31).
  • The seat read K by hand: 9 first-parent commits since the merge base, under 15, with no translations/ or skills/ paths on either side.
  • 45 check-runs are success, 13 skipped and none failed. Mergeable is clean.

Overlap: #36039 (S5) is ahead in the queue and touches the GridField import block. If the queue drops this PR on that conflict, the thread merges main and the seat reads the merge-only delta.

The seat readies this PR and arms auto-merge in the same step. The PR carries Fixes #35996.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 15:50
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 21, 2026
Resolves the GridField import block against #36039 (S5): keeps S5's
gridCellPanels import and the shared isImeKey import; the IME guard stays
the first line of onCellKeyDown.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgW85kwjGaz7HqsmEuv
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Regen-provenance: declaration-face record 7065174978 (PASS) · 349c509bc → e25e36908 · diff <(git diff MB_OLD 349c509bc -- . ':!.changeset') <(git diff MAINPARENT e25e36908 -- . ':!.changeset'), with index and @@ lines set aside (MB_OLD 7dd1a2f61, MAINPARENT 3543b51d3) · 2026-11-21T16:07Z

The merge queue dropped this PR with MERGE_CONFLICT against #36039 (S5), and e25e36908 merges main to resolve it. The provenance diff is not empty, and the whole of it is one hunk, ui/packages/fields/src/widgets/GridField.tsx's import block:

  • The context lines differ only because S5 added lines near the top of the file. The PR's own +import { isImeKey } from './imeKey.js'; stays as it was.
  • --remerge-diff shows the single conflict, resolved as a union: S5's gridCellPanels.js import is kept next to the shared isImeKey import, and nothing else changes.
  • The IME guard is still the first line of onCellKeyDown, and S5's own Escape handling already uses the same isImeKey.

The net diff against main is still the same 9 files (+262/−31). No export, prop or changeset line changes, so the declaration record carries over. The thread re-ran imeComposition*, GridField* and gridCellPanels* on the merge: 22 files, 247 tests, all pass. Check-runs on e25e36908 are read at landing, after L1-a's merge-only re-check of this one resolution.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgTcFanGhTvqS1V2Q4U

席位核对 — delta ACCEPT (L1-a, main merge)

维护者速读

这次把主干合进来时,和刚合并的「明细表格单元格改版」(#36039)在同一个文件开头的引用处碰了一下。解决方式是两边都保留,结果没问题:

上一轮的通过结论照旧有效。CI 绿了、座位的 L2 跟上之后,按普通队列落地。

Head reviewed: e25e36908a5fc29989b6e69e832a81673b2f06ab, a merge commit with parents 349c509b (ACCEPTed in 7065137237) and main 3543b51d3.

The resolution

What holds after the merge

  • onCellKeyDown opens with if (isImeKey(e)) return;. The select cell's onNavKeyDown and the other cell faces reach that handler.
  • feat(fields): the line-item grid's select and date cells open their panel under the cell (#36023 S5) #36039's document Escape listener returns on isImeKey({ nativeEvent: e, keyCode: e.keyCode }). Since fields/src/widgets/imeKey.ts is now export { isImeKey } from '@object-ui/components', it is the same single predicate this PR defines.
  • gridCellPanels: the select trigger is a button, the panel's own handler acts on Tab only, and its search box is InCellOptionList, which already guards. Nothing composes text unguarded.

Landing terms

  • As in 7065137237: not governed, the seat's declaration L2 on the landing head, the ordinary queue, Fixes #35996.
  • CI on this head was still running at the time of this record.
  • This review does not approve, mark ready, enqueue or request review.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat re-landing · 2026-11-21T16:28Z · #35996, on e25e36908 after the queue dropped 349c509b with MERGE_CONFLICT against #36039.

Readings:

  • The seat landing 7065185542 stands. Its declaration L2 PASS 7065174978 carries over by the regen-provenance record 7065410260. That record names the one provenance difference: a union resolution of GridField.tsx's import block.
  • L1-a merge-only delta ACCEPT 7065436207 is on this head.

On this head:

  • 45 check-runs are success, 13 skipped, and none failed.
  • K is 0: main has no first-parent commits past this merge, and no translations/ or skills/ paths changed.
  • check-governed-merges --pr 36126 reads NOT governed (+262/−31).
  • Mergeable is clean.

The seat re-enqueues the PR. The PR carries Fixes #35996.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 8aed508 Nov 21, 2026
58 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-35996-ime-enter-fields branch November 21, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Field widgets: Grid, DatePicker and RecordPicker act on an Enter pressed while an input method is composing; one IME-key predicate for grid and fields

2 participants